Optimal. Leaf size=27 \[ -\frac{\sqrt{2} \tanh ^{-1}\left (\frac{\sqrt{1-a x}}{\sqrt{2}}\right )}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0140314, antiderivative size = 27, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {627, 63, 206} \[ -\frac{\sqrt{2} \tanh ^{-1}\left (\frac{\sqrt{1-a x}}{\sqrt{2}}\right )}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 627
Rule 63
Rule 206
Rubi steps
\begin{align*} \int \frac{1}{\sqrt{1+a x} \sqrt{1-a^2 x^2}} \, dx &=\int \frac{1}{\sqrt{1-a x} (1+a x)} \, dx\\ &=-\frac{2 \operatorname{Subst}\left (\int \frac{1}{2-x^2} \, dx,x,\sqrt{1-a x}\right )}{a}\\ &=-\frac{\sqrt{2} \tanh ^{-1}\left (\frac{\sqrt{1-a x}}{\sqrt{2}}\right )}{a}\\ \end{align*}
Mathematica [A] time = 0.0467998, size = 53, normalized size = 1.96 \[ \frac{\sqrt{a x+1} \sqrt{2 a x-2} \tan ^{-1}\left (\frac{\sqrt{a x-1}}{\sqrt{2}}\right )}{a \sqrt{1-a^2 x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.122, size = 50, normalized size = 1.9 \begin{align*} -{\frac{\sqrt{2}}{a}\sqrt{-{a}^{2}{x}^{2}+1}{\it Artanh} \left ({\frac{\sqrt{2}}{2}\sqrt{-ax+1}} \right ){\frac{1}{\sqrt{ax+1}}}{\frac{1}{\sqrt{-ax+1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{-a^{2} x^{2} + 1} \sqrt{a x + 1}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.77288, size = 149, normalized size = 5.52 \begin{align*} \frac{\sqrt{2} \log \left (-\frac{a^{2} x^{2} - 2 \, a x + 2 \, \sqrt{2} \sqrt{-a^{2} x^{2} + 1} \sqrt{a x + 1} - 3}{a^{2} x^{2} + 2 \, a x + 1}\right )}{2 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{- \left (a x - 1\right ) \left (a x + 1\right )} \sqrt{a x + 1}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.24203, size = 58, normalized size = 2.15 \begin{align*} -\frac{\sqrt{2} \log \left (\sqrt{2} + \sqrt{-a x + 1}\right ) - \sqrt{2} \log \left (\sqrt{2} - \sqrt{-a x + 1}\right )}{2 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]